import requests

url = "https://www.baidu.com"

rq = requests.get(url)

print("结果类型：", type(rq))

print("状态码：", rq.status_code)

print("编码：", rq.encoding)

print("响应头：", rq.headers)